#ifndef BENCHMARK_H
#define BENCHMARK_H

#include <stdio.h>
#include <ctime>

class Benchmark
{
private:
	clock_t m_LastTime;

	long m_TimeDiff;
public:
	Benchmark( void )
	{
		m_TimeDiff = 0;
	}

	void Clock( void )
	{
	    clock_t t = clock();

	    m_TimeDiff = t - m_LastTime;
	    m_LastTime = t;
	}

	void BenchmarkInfo( void )
	{
	    printf( "Benchmark, timer difference: %l\n", m_TimeDiff * CLOCKS_PER_SEC );
	}
};

#endif
